Square and triangular matrices in Magnahi-Terzaghi’s architecture