Added cosine similarity method to Vectors