A (really basic) implementation of tf-idf