Add solutions to assignment 2 for Machine Learning