Java IPv6 and IPv4 Network Calculator