Quick sort in C