Math: minor code reorganization.

Place "alias" methods after "implementation" methods.
Math: access RectangularMatrix's own data directly.
Math: creating matrix from diagonal, retrieving values on diagonal.