Use Boost::Geometry::Utils for Douglas-Peucker
Optimization: avoid calculating square roots if not needed