fixed minor bugs in the Iterator of the Deque and the removal methods
implemented resizing of RandomizedQueue when it shrinks. Improved iterator to create an own copy of the entire queue