Simple iterative search algorithm. Bisection Search