Implemented Texture3D class