https://aticleworld.com/dynamically-allocate-2d-array-c/
How to dynamically allocate a 1D and 2D array in c.