Added median of 3 version of quick sort