first final version of RandmizedQueue (with tests)