Replaced MergeSort function with the built-in SortADTArrayCustom