improved performance of k-means by kd-tree structure