Speedup for matrix multiplication of DM times DM and DM times M.