The root solvers now take the function to solve as a parameter to the solve methods, thus allowing to reuse the same solver for different functions. JIRA:MATH-218