Implemented the Deque and DequeTest classes