Add basic inverted index implementation in C++