bgfg_gaussmix.cpp (redo merge)