Degree of a polynomial