Added a min-heap.