Deque class 1st version