Added quick sort implementation: improve quicksort with duplicate