Update calc.cpp

Square Method added.