implement merge_sort example