Geographic KMeans clustering in Groovy/Java