[Amibe] Add DistanceMetric.load
[Amibe] BeamInsertion: fix a bug when there are small edges