Primal and dual implementations of the perceptron learning algorithm for classification.