hessian matrix for nbn