Update calc.cpp

Included square() method