the 1st assignment of machine learning class in coursera: logistic regression and regularization