update deque.java and queue.java

write by youyou 2014/5/16