Worked on heap sort