mixture model training added; EM for mixture model added

- EM for mixture model
- mixture model training
- unittest for mixture model with gaussian distributions 
Why does free have to be explicitly called here? Is the automatic reference counting of `SGMatrix` not used here?