Update Calc.cpp

add square method