If you are building the data structures yourself, you should be able to build them to make using them easy. Knowing so little about what you are doing, it is difficult to give helpful advice. How are you building your data structures? Where does the data come from and how is it organized? What do you want to do with your data structures once you have them? If you post a working example program, complete with input data and desired output, there are probably many people here who would help you improve it.