Small optimization in DocSimCosine::inner()