memory mapping of 3D array