intersection of sorted arrays