randomized queues and deques