use more advanced quick sort

quick sort updated