Homework solutions to Andrew Ng's ML class on coursera