Benchmark of algorithms to find indexes of duplicate items