Create inverted index