IPRange: add faster free ip counting
vps: refactor free ip counting to use the new way