finished 3.23 deque implementation