My implementation of quicksort