life_expectancy function

Compute life expectancy from age-specific mortality rates