kmeansU function

K-mean clustering of latent node positions