add Build() to InvertIndex, implement WANDIterator