C# two line segment distance