added simple cosine similarity