Update calc.cpp

square function is added