optimized IndexBuilder, modified sorting and normalizing of 1grams and
0edges