Update calc.cpp

addition function is added