small optimization on dgemm_kernel for N=1