finished deque and created new class RandomizedQueue