Create multidimensional arrays based off a matrix where the length of each item is the value of that position in the matrix