Update calc.cpp

included sub() function
Merge pull request #1 from madhupatil4/3428

Update calc.cpp