Optimized Quicksort.