change continuous IPs to CIDR format