mostly finished RandomizedQueue