add function in polynomial