Mark the tick against the correct answer in the following: \cos \left(2 \tan ^{-1} \frac{1}{2}\right)=?
A. \frac{3}{5}
B. \frac{4}{5}
C. \frac{7}{8}
D. none of these