improve the quick sort

improve the quick sort by looking 3 values when selecting a pivot