RandomizedQueue first version