Array merge program