Bug fixes to address segmentation faults. Specifically, fixed mismatched new/delete calls, and addressed topological defects (throw exceptions in these cases).

git-svn-id: svn://svn.r-forge.r-project.org/svnroot/ptinpoly@28 edb9625f-4e0d-4859-8d74-9fd3b1da38cb