Added more functions to Math.cpp, not tested yet though