recfun implementation (Pascal tree, Parentheses balancing and Coins change count)