Changed reduction order to row-major.
Documented reduction order for fold functions.