add a simple greedy algorithm for finding a reasonably good pairing