Added hessian matrix function
Added hessian matrix function