Binary search a number in an unknown size sorted array.

Given a sorted array of unknown length and a number to search for,
return the index of the number in the array. Accessing an element out of
bounds throws exception. If the number occurs multiple times, return the
index of any occurrence. If it isn’t present, return -1.