Shouldn't grid size calculation be a part of the grid clustering algorithm?