Tree-based morse decoder