Built the merge program. Merge function is not working