implemented gaussian mixtures