Extract Leaves of a Binary Tree