Modifies MergeAlgorithm