Execute the multiplication algorithm with matrices.