Homework 2 for CIS 520 Machine Learning