Much of modern life is passed in queues to enter a show, to pay for everyday shopping, to board a plane. The social sciences have ideas to shorten the wait