Ridder method now works

I had been using the wrong test to determine what bracket to use