proogram to merge arrays was completed