Use libdistance to simplify clustering
tests
Merge pull request #304 from rmcgibbo/kcenters

Use libdistance in k-centers and regularspatial