small changes in logsumexp
provide example material