Work on TF/IDF calculation