Simple TF-IDF implementation