Added alternate way of finding the cosine of an angle