Fast hessian and grad working and with tests!