Source: https://www.ics.uci.edu/~irani/w15-6B/BoardNotes/MatrixMultiplication.pdf