Modified Quicksort