Added intermediate variable for 2*a
Merge pull request #2 from ppham/master

Added intermediate variable for 2*a