hash function

the hash function has been written and the hash table has been set up