Figure 10:
Optimized array structure for the second example.