Decrease And Conquer Binary Search In Python Using Lists In R