Template:Java comparison of Queue and Deque methods