Cleanup.
Working generator for Broyden's method.