Add template for 3x3 matrices.