Գրեք սա: Functional Pearl: Perfect trees and bit−reversal permutations