Calculate the determinant of a 2×2 matrix.
For a 2×2 matrix [[a,b],[c,d]], the determinant is ad minus bc.
det = ad − bc