document logSumExp