Deque class first implementation