Added back best and worst to Hamming Diversity function