#
# Hash1
#

def hash1(txt, m=101)
   h=0
   txt.each_byte {|i| h = ((h<<8) + i) % m}
   return h
end