enabling Douglad-Peucker algorithm