the sum of two integer may overflow. see
http://googleresearch.blogspot.jp/2006/06/extra-extra-read-all-about-it-nearly.html
for details.
Merge pull request #37 from advancedxy/fixMediumCaculate

the sum of two integer may overflow.