added max_likelihood to scalar gaussians