Nested array theory