Exporting dirichlet mixture model to file