Solution for Logistic Regression Exercise

Solution for Logistic Regression Exercise (Programming Exercise #2)