bug fix and tune
Merge https://github.com/primenumber/libPolynomial
bug fix