check in Media of 2 sorted arrays