Someone who is better versed in data structures can probably give better advice, but personally I would use 2 dictionaries for ease of use. You can do the same with 1 dictionary, but access time will increase.
Edit : shit, I just wrote the code, how would I do it, and I saw that Falaina posted this, which is the same idea that I did only much better: Getting the key from the shared dictionary?
Dinah Aug 04 '09 at 13:58 2009-08-04 13:58
source share