polynomial: reorganize print function.
polynomial: improve and test print function.