Added and tested tf-idf calculation