added the hash_diff code from jcam for comparing symbols