Implemented documentTermFrequency() using inverted index