modified quicksort.c