Using kernel trick with the Perceptron algorithm