Fixes for issues 52, 51, 48, 46, 45, 41, 40, 36
don't use Integer.compare for backward compatibility
additional fixes in Simplify and Cut
Merge pull request #56 from Esri/bug_fixes

Bug fixes
Merge pull request #1 from Esri/master

pull