wait_step function

Compute maximum time for each row from two vectors of arrival times.