Compute the determinant of the matrix
by expanding the matrix along every column and along every row.