Determinant calculation.