Code / writeup for 6.867 (machine learning) course homework 1