cluster:implement K-Means algorithm