potential em algorithm sufficient statistics fix