sparsifying the Hessian matrix