faster square operation
Merge pull request #1068 from nremond/faster_square

Faster square operation