partition_kmeans function

Partition samples spatially using k-means clustering of the coordinates