working on a pivot deque class
finished pivot deque