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