add_grid_3d function

Add a 3D grid of nodes to the graph