Improve the hashtable and add linked list when collisions happen.