Trying to figure out PriorityQueue