3D matrix manager class