polynomial lib