Store generations in multi-dimensional array.