Some algorithms and Classes for clustering n-dimensional points