The parametric curve $(x,y) = (\cos 2t, \cos^2 t),$ for real numbers $t,$ describes a line segment.  Find the length of this line segment.The answer is in the form k\sqrt{m}+n,. Please provide the value of k + m + n.

Let's think step by step and output the final answer within \boxed{}.
user