Initial implementation of RandomizedQueue and Subset