Removes deprecated function max_of_grid
Removes max_of_grid2