tries, hash functions