Use std::array in TriangleIndex
Refactored MAT