Solution for issue #123 Code for heap sort to sort using max heap To learn more about heap refer to my notes Click here