added median of three to choose the best pivot