The approach of cannon's algorithm

.... It works for any size of matrix.