Douglas-Peucker algorithm: a curve simplification algorithm