uu and ii cosine similarity