returns the determinant of square matrix A slightly redundant to LU_determiant but allows also to return zero as a determinant