insertion and merge sort, input.c --> util.c