Updated ESRI simplify method / added intersection test