triangular matrices shortcut