finish the buildIPdomainmap and url chain length stats functions