Implement multivariate gaussian distribution