Fixed a bug in unoptimized gemm for A . B^T product.