InvertedIndex-file implementation
final code