homework #1

solution for homework 1 of cs194
Problem statements:
http://www.seas.upenn.edu/~cis194/hw/01-intro.pdf