implement naive intercection of two sorted arrays time: O(M*N)