Multiclass perceptron