How do I find the angle between two vectors using the law of cosines?