Binary Search

Simple example of binary search. (In practice, better to use Python's bisect module.)