search in 2 sorted arrays