program to merge two arrays