const correctness for Grid classess