implemented calculation for idf