Avoid unnecessary copying for -insert-at
Merge pull request #30 from shosti/insert-at-opt

Small optimization for -insert-at