faster implementation of logpdf for MultivariateNormal