Implemented RandomizedQueue