Corrected some comments in cos.hh
Added a polynomial function class
Added a test for the polynomial function. Work in progress.