Deque on doubly linked list