train function

Train a Gaussian Model