MergeSort algorithm implemented