search in two arrays