Refactor for legibility segment finder function.

Now using NumPy binary search algorithm as well.