Update calculate_diversity.pl