Deque instead of Stack