Change PriorityQueue.java to use a TreeSet. This removes duplicate urls but still keeps the ordering.