Inverted index implemented in C++ and Cuda