work in progress for fast isvalid(polygon)