Polynomial and SmartPointer