Add sorted array intersection function with binary search.

Tries to skip over ranges of elements to improve efficiency.