Sorting algo implementations for unit testing