Implemented initial guess for iterative algorithm, using direction vectors and the centroid of linear objects.