Updated NodeId::CommonLeadingBits and added unit test.
Merge pull request #1 from Fraser999/address_allocation

Updated NodeId::CommonLeadingBits and added unit test.