Randomized Queues and Deques

http://coursera.cs.princeton.edu/algs4/assignments/queues.html