Add iscontiguous() and getRange() to IPSet

Closes #43
Adds a few tests cases as well.