K-centroids hierarchical classes analysis