Optimized Quicksort