hexagonal grid calculation improvement