improved polynomial's constructor