Wrote heap_sort code in C & C++