Added tf-idf function. Added unit test for the tf-idf function.