select Quicksort pivot more intelligently