first version of Deque