Douglas-Peucker VC++算法实现