Smoothening complex polygons - Ramer–Douglas–Peucker algorithm | Hacker News Reader