queue_lengths function

Compute queue lengths from arrival, service and departure data