Deque implemented.