Add logistic regression and ridge regression examples based on SGD.