Yes, but from my Fortran days I would immediately look at sparse arrays as the best solution to this. In effect they were lists of lists.