init of SimpleGrid class
computing cell