added gradient of trace of matrix times hessian for RM-HMC