map implementation for polynomials