Updated IPv4 to use bit manipulation for parsing IP addresses instead of mods and Math.pow for efficiency.