Implement a limit on degrees for polynomials