Added calculations for first and last applicable cells for each taxon