Fixed problem with the root being changed by first call to extract_max in MinHeap.