Update calc.cpp

Added a cube() method
Merge pull request #1 from soudamini-patil/1234-5678

Update calc.cpp