Add perceptron algorithm