Finish selecting the nodes of K-means