adding column-row outer product