Efficient Construction of Fundamental Data Structures in Large-Scale Text Indexing