Update Max, Min and Sum Functions.cpp