Upper Bound Using Binary Search In Python Using Lists