Modified more efficient hash
Checkpoint
hash(x) has a problem!