Added back in quicksort with generalised pivot