Upper Bound Using Binary Search In Python W3schools