Adding TFIDF features and computing cosine similarity code