Optimized some gmminit and mixgauss_init functions.