Match Pairs by matching head/tail values