pass parameters as references instead of copies (performance)
Merge pull request #35 from kdomanski/master

pass parameters as references instead of copies (performance)