correctSingleHeap function

correctSingleHeap