Update calc.cpp

added the addition function.