https://peeterjoot.com/2024/01/16/computing-the-adjoint-matrix/
Computing the adjoint matrix