Update Calc.cpp

Added a square function