classification of polynomials according to number of terms