Improve pointer hash function to include all bits