Update calc.cpp

add sub() method.