CXX-187 Add distinct helper

I had to look really hard to find something to complain about in this review :) You should add <algorithm> to call std::sort.