added test for generating regular grid
added function for generating regular grids