changed hashtable. Added class for hash functions;