K_mean clustering algorithm