modify RandomizedQueue iterator constructor

The specification needs every RandomizedQueue iterator to be mutually
independent, so a new array is added to copy everything from queue
and shuffled to make it random.