First cut of Perceptron in C