checkstyle

Use Deque instead of Stack