Can’t secure a reservation to a hot restaurant? Try using an algorithm