Dog helps firefighters save lives on cargo ship