Heap Sort Implementation In C