diversity_aid function

Calculate portfolio diversity (Average Instrument Diversity)