made some changes to AlgoMergeSort