finished programming assignments for regularized logistic regression