Merge pull request #171 from qhzhou/inverted-index

Inverted index
refactor