Simulates an M/M/1 queue