Update calc.cpp

Added Square method