A Generic Merge Sorter Using Lists and Comparator