Lab3: Optimize quicksort