Binary Search Algorithm (Python 2.7)