Implements basic Matrix3D operations