Implement Hash/PartialEq/Show for PriorityQueue.

I'm a bit unsure about this since it relies on sorting the underlying vector, an O(n log n) operation. However, I haven't been able to come up with an alternative approach.