https://www.cs.cornell.edu/courses/cs1110/2012fa/assignments/assignment5/images/matrix-transform.png