add InitTopicIndex and InitDocumentTopicCount functions