in reply to Sparse Array

It may help us pass comment on your implementation if you actually show some code. It may help too to tell us why you need this solution and perhaps provide a little sample code (a test case) that would exercise the implementation.

It may be that a database is a good fit for your requirements.

True laziness is hard work