created deque as basis for queue