Thank you very much! Hashed arrays seem to be what I'll have to use, indeed. BTW, the problem I try to solve is keeping track of what (symbol matrix) I'm adding to a (big) symbol matrix. Each term is identified by two numbers (actually, three, including the sequence number). -Yury