Quicksort in C