working morse_tree