Calculate rarity scores and ranks for NFT collections based on trait frequency distribution. Supports ERC-721 and ERC-11