Improved speed of M+ by 25% by using set instead of sort/erase in MyCalculateDiversity