Merge pull request #11 from mattybeam/master

Update EM algorithm after checking
Fix weird bug with "first"
Merge remote-tracking branch 'origin/master'

Conflicts:
	code2/m.R
First try for rest of EM
Fixed error in 2.20
Merge pull request #3 from CY-Chan/master

Update EM