Inverted index

inverted index implemented