EM algorithm for Gaussian mixture model on gridded space