Printing polynomials correctly