Added heaps for min value searching.