Use references to avoid unneeded copying
Merge pull request #20 from jeroenk/ref-use

Use references to avoid unneeded copying