added deque class