Comparing two arrays completed