correct a bug in sumOfSquares
Merge pull request #1 from agro1986/master

correct a bug in sumOfSquares