making in-place addition modification suggested in issue #1089
Merge pull request #1116 from rebeccaroisin/inplace_addition

Speed-up through in-place addition (closes gh-1089)