Homework for Coursera course:Machine learning(Stanford)