Update heap_sort.c

bug fix