add median of 3 pivoting to quicksort