k_means function

K-Means