polynomial implemented with linklist