WeightedRandomSampler + DistributedSampler

I’ve posted an initial implementation here. However, note that this code is not fully tested for all possible use cases and I suggest to also take a look at this implementation.