Update calc.cpp

square method added..