Array intersection of two sorted arrays