Added perceptron for parts a and b of homework2