Factorize the code that checks and insert logic...
Factorize the code that checks and insert logic...

Factorize the code that checks and insert logically-ordered distance matrices

This commit was SVN r3021.

ggouaillardet/hwloc,ggouaillardet/hwloc,shekkbuilder/hwloc,shekkbuilder/hwloc,ggouaillardet/hwloc,shekkbuilder/hwloc,shekkbuilder/hwloc,ggouaillardet/hwloc