Update calc.cpp

included sub() function