added support for Fisher and Hessian matrices for second order directions