Added a class that creates an inverse index for searching