Modified deque