Queueing Theory: A Rational Approach to the Problem of Waiting in Line