Finalized shortestTrip - not tested