First finds a range where the element could be by repeatedly doubling the index, and then applies binary search within that range.
Explain code with DocComment! Try out your own code!