Perfect_pairings_butterfly