Compute IDF [renamed]