Added cosine similarity script