Compute The Determinant Of The Matrix By Cofactor Expansion