changed way to link edges during profile construction, now we look to
link edges to the nearest of the previous level
Merge branch 'Nicolas' of https://github.com/eerico/Master-semester-project into Nicolas
merge
erge-