Update calc.cpp

Double square function added