first flawed attempt at RandomizedQueue