Java bubblesort and (buggy?) quicksort implementations.