JAVA Queues and Deques