npm module for generating n by n grids modeled as a 2d array