First 2 steps of EM algorithm