Add iscontiguous() and getRange() to IPSet

This commit adds the methods mentioned in #43