Solution to Machine Learning exercises course by Andrew NG