dot product of row and column vector