Re-structure code to time the matrix multiply functions under test