Gaussian mixture model clustering and tools for doing MAP estimation