my homework submitted for the coursera machine learning class from Andrew Ng