Optimized Union of Non-disjoint Distributed Data Sets