Mixed algorithm for matrix multiplication.