Refactoring.
Implementing Mixture of Gaussians.