basic.stats function

Basic diversity and differentiation statistics