added cos test
added method for calculting sine by a power series