https://123dok.net/document/z1d69jvz-decomposing-square-matrices.html