Minor code optimization in for-loops or by reusing variables
Merge pull request #120 from marcelerz/minor-optimizations

Minor code optimization in for-loops and by reusing variables