Implement Hash/PartialEq/Show for PriorityQueue.