add Douglas peuker polyline simplification algorithm