Java version of a quicksort algorithm for numbers.