Implementing perceptron

X