Use Reducer to minimize intra-distance