Fixed bug in the MAX-HEAPIFY where the length parameter was not correct.
Bug fixed in the MAX-HEAPIFY function where the index was not correct.
Fixed length of MAX-HEAPIFY.