MinHeap & MaxHeap
A data structure backed by Rust’s BinaryHeap that keeps elements in sorted order. This is very useful when implementing algorithms like Dijkstra and A*.
Note: comparisons between types like
IntandStringare undefined and the Heap will treat them as equal. If you like well-defined behavior DO NOT MIX THEM.