I am trying to implement Ring/Canon method for matrix multiplication. This code has mainly 2 parts, one for computing diagonal elements and one for non-diagonal elements. Th