Update maths.cpp

Added square method