MergeSort code separated and added as new class

MergeSort code separated and added as new class
Changed middle element calculation logic

Changed middle element calculation logic