Implemented log_sum_r().