implemented voted perceptron