add isPrimitive to Data.Polynomial