Generation of Binary Trees from Stack Permutations