naive bayes works properly beginning to understand the em algorithm. Will now implement the em algorithm