I'm certain PriorityQueue.length is O(1), not so sure about .size
tidy