Source: https://maryash.github.io/135/slides/6.6%202D%20Arrays.pdf