core.dot_mm() another preparation for optimization for C-contig and F-contig matrices