Improved RandomizedQueue