idf (npm): Function that takes a Term-Document map; computes IDFs.
Keywords: idf|tfidf|tf-idf|inverse document frequency|term weighting|vector space model