add two cosine similarity function