worked on heapsort() compiling error