added an optional secant subroutine to jroots2