adds quicksort in place