stack to deque
stack to deque