Population density effects on longevity