added function create hash table
added function to return hash value