k-means for point cloud