Document CMath

Don't merge it now, I'll document more functions tomorrow. Just needed some review.
only "index of the maximum value". The documentation of the interface does not need to contain the internal name of the variable for the return value.