what if I just append the linked list that stores the (key, value) pair if it ends up being the same key??
That is one common way of solving the problem in fact.
QuantumPete
"No-one else has reported this problem, you're either crazy or a liar" - Dogbert Technical Support
"Have you tried turning it off and on again?" - The IT Crowd