extracted combining of Layers in Map
refactored added methods to be private
extracted EdgeSprings and ShapeMatching from SpringPhysics