Added CosineSeries and SineSeries with unit tests