Added generic functions to copy 1D, 2D, 3D fields from host to device, with option for offset/nooffset
Added generic functions for the backward copies