Add algorithm DouglasPeucker