[API] some functionality moved to template class GridClustering