add args to k_merge_sort.c and fix bugs