Implementing RandomizedQueue Class