Skeleton and test cases for reduce_grid method