Matrix Determinant

Calculate the determinant of a square matrix (2x2 or 3x3).