Added const begin and end functions to grid for range based for loops.