Created custom, templated matrices.