add inverted index
added inverted index for more consistent and one pass tokenization (will optimize in next release