Added iterative algorithm to minimize the root-mean-square distance from collected points to defined linear objects.