Heap sort working properly, and fastly, added some comments