Deque based on double-linked list