Inverted index

Implemented basic indexing and searching.