Implemented BUDDY-PAIRING.