brent root finding method added at brent_root_finder.rb