Fixed code style, removed Deque class as Java 6 alien