Debug: invert the covariance matrix in gaussian fcn