Merge pull request #10 from mattybeam/master

First two steps of EM algorithm
Merge pull request #2 from CY-Chan/master

Merge pull request #10 from mattybeam/master