Calculate Shannon Diversity Index