add quicksort implemented in c