[MeshGeoToolsLib] Fix calculation of search length.

In case of aquidistant meshes the expression sum_of_sqr - (sum*sum)/edge_cnt can get negative due to numerical calculation. The root of a negative value is not computable in real numbers.
[2dGWF] Add boundary condition to all nodes along polyline.