new implement onlinedpgmm, previous version is wrong