Minor Changes to the Heapify functions

Functionality verified