add simplify polygon function and fix subtle bug with perpendicular distance calculations of points to lines
release notes
remove useless code