Seems correct right?
First array based approach for heap - not quite correct as stated in task definition