Polynomial in the form of a doubly linked list