added TF-IDF computation