first version of polynomial into KMF :-)