Some Sorting algo in Java with tests