Fixed a bug with SortAlgorithm.checkOutput