combines array and remove duplicates
Combine the second array with the first array and removes the duplicates.