Add perceptron to algorithm