fix minor bug in addmm to suport resulting matrix of dimensionality Nx1