added merge_sort code