Implementing linked list for hash table collisions