add a cosine Similarity script