comp_min_N function

Compute a suitable minimum population size value N.