Various Sorting Algorithms in Java