technique for writing a polynomial given roots