update heapsort.c