Returns a new tree equal to this tree extended with new_leaves.

def extended(self, new_leaves: List[bytes]):
        """Returns a new tree equal to this tree extended with new_leaves."""
        new_tree = self.__copy__()
        new_tree.extend(new_leaves)
        return new_tree