checking if ip belongs to subNet (wiki revisions)