Remove obsolete function
Rename function
Remove unused case class
Rename class
Simplify calculation of smallest distances between link end points
Rename function to find shorter distance