Implemented Term, Polynomial classes to hold the data regarding the
functions. Added an abstract class method parameter which will change
depending on the approach selected. Added toString() methods of Term and
Polynomial class.