fn tree_distance(a: &[usize], b: &[usize]) -> usize
Steps between two panes through their nearest common branch.