Add dmd_aaNewCustom() for custom key comparison
Add simple string hash function
Use associative array to track anchor duplicates