This just needed to be changed to `let i = branch.children.len() - 1; ...(branch.children.get_mut(i), ...)`.