Respond to jnh5y's comments.
Change code for NearestNeighbor PriorityQueue: no need to override ord inside the class, even if IDEA claims otherwise.