line reduce points using ramer-douglas-peucker