Perceptron classifier implemented.