MinimumHeap now updates the heapindex