Create a merge sort algorithm