Completed quicksort for java