Implements DF*IDF