do not allow Brent to set root outside of [min, max] interval, which could happen because of double arithmetic uniceties. This can be problematic in cases where the function to be optimized is nt defined outside that interval (and may throw as a result for instance, or worse crash)