Implementation of the algorithm to create coarse grids in AMG

Feature

Implementation of the algorithm to create coarse grids in AMG.

Note