Codes for homework from Machine Learning class on Coursera