adding nearest centroid classifier