Change GMM._data type to vector. Refactoring the code, change iter to [].