Source: https://www.dcode.fr/determinant-matrice.pdf