Inverted Document construct index implemented