Updated code for Multiclass Perceptron