I am still not very sure about it. In doing both the operations at the same time, we are actually messing with the array indices. Its now harder to keep track of the nodes that belong to the sub-heap that is to be deleted.