queue_step function

Compute the departure times and queue lengths for a queueing system from arrival and service times.