New computer algorithm can locate people lost at sea