The algebra of meson matrices