Make matrix a template in Strassen algorithm