added an un-robust implementation of E step. NOte: assumed if char is N to replace it with T