fixed resizing issue in enqueue of RandomizedQueue