quicksort using slices, single threaded