Fixed class.map definiton error in calculate_diversity.R