adding multiclass implementation to classifier