douglasPeucker algorithm - remove comments