improved calculation for best_combine

based on smallest distance