Complex Analysis: Integral of cos(x)/(x^2+1) using Contour Integration