Use polynomial-time algorithm to compute determinant.