Add merge sort algorithm