simplify EM functions
refactorize factor analysis
refactorize pca vb
fix dimension bug of logistic regression
fix diag index
update TODO
improve logistic regression using chol
improve convergence check
extract newton optimization from logitstic regression
improve convergence check