Update logSumExp.m