update heap_sort [c/sort.c]