Improve quicksort in java