a new deque based loosely on the design of the T&M deque