Fixed typo in vector formulation of cosine rule

Fixed type on line 54, changing |v^2| to |v|^2