finish RandomizedQueue and Subset