calculate simplification of line vector data using optimized Douglas-Peucker algorithm
input coordinates
first point index
last points index
simplification tolerance (higher means simpler)
calculate simplification of line vector data using optimized Douglas-Peucker algorithm