Implemented array-based rendering.
Cleanup.
Optimized array-based approach.
Merge branch 'array-based-rendering'