K-contractive map (k-cm) for classification