CIDR to IP Range (and Back)

Two-way converter: CIDR → IP range, and IP range → minimum set of CIDRs that cover it. Useful for firewall rules, AWS security groups, NACLs that take either format.