Ok ora è più chiaro,non ti eri spiegato molto bene,dovresti postare un po di codice che faccia capire come è fatta la tua struttura dati.