Modified MergeSorter to use Generics in the declaration