update deque.java