Update Cal.cpp

Added square method