quick sort with cutoff and triple partition work