Update math.cpp

Finds Mean