Added the Ridders' method for root finding