Fixed quickSortInPlace pivot element selecting