finished tf-idf calculations, and cosine similarity calculations.