refactored KMeans transform
fixed SVMTransform for multiclass learning