Adds subnet support for is_in?

Changed implementation for is_in? so subnets are supported.
Added test.
Comparing network and broadcast addresses is also much faster (a quick
benchmark shows a huge improvement). Hope I'm not missing something.
Fixes #9