Brent's root finding algorithm, as a generator function.
bitbucket.org/hbieshaar/brent-zero-generator