Update calc.cpp

added sub() method