C++ module for creating an inverted index for a list of files