kmeans function

QTS K-Means Alignment Algorithm