[GeoLib] Corrected implementation of check if Polyline is in Polygon.

The check if a polyline is in a polygon is needed within the SimplePolygonTree.
you can define a tolerance once at the top of this function so that you can easily change it later if needed.