a grid is a regular pattern in two dimensions