quicksort function of C