Added hashcode and equals to NetworkAddress.