numpy versions of solutions to coursera course in machine learning