compareRrices and getSortAlgorithmResult added