This works with the template (amortized_template.html) to make a visualization for dynamic array expansions.