Fit a Gaussian mixture model given a set of data