Vectorize my implementation of the Perceptron, and make it adhere to
scikit_learn API