2D coordinate points sort by line C#VS2008 project source code