Add generator class for stencil code CUDA 2D, 3D, check identical read and write