Complete Implementation of Deque