vector and idf cosine