Perceptron Delta rule implementation