add 'median-of-three' quicksort