fine tuning douglas peucker optimization

quick test environment added