writing polynomial equations given the roots