Smart Squaring

Square numbers intelligently. Basically, $ x^2 = x * x $.

(c) 2015, Gao and Mengyin.