Polynomial arithmetic