I thought you're writing a **trading script**, not a matrix homework problem.
You're using run() and series(). These build up your array, so you are already doing that.
Read up:
https://zorro-project.com/manual/en/series.htmhttps://zorro-project.com/manual/en/run.htm