If you want to work with matrices I advice you to work with a library like [Arraymancer](https://github.com/mratsim/Arraymancer) instead of doing it by hand.
It will be [easier](https://mratsim.github.io/Arraymancer/tuto.slicing.html) and more efficient.
