Changed implementation of Grid<T>