Randomized Queues and Deques.