Use unordered multimap instead of boost flat multimap.
In vtune profiles a significant fraction of the cpu is spend in addSeeds on inserting elements into the boost flat_multimap. The time spend in addSeeds can be reduced significantly by using a std unordered map instead, which trades cpu for larger memory consumption.