add benchmarks for distinct

This includes benchmarks used in the post for distinct.