My solutions to the cs109 homeworks (iPython notebook format)