Return index by return statement, not parameter
Some renaming and type adaption
Change parameters of recreateIndexMergeDict