To find the value of Cosine function using power series