Providing hash function for address stacks.