Update TimedQueue.java

Fix to TimedQueue's first revolution.