This matlab function is used to fit gaussian mixture model iteratively