rewrite sort.c, add heapsort.c and run