add mergeSort in SortingLogic class