@classmethod
def from_keys(cls, iterable, value=None):
    """T.from_keys(S[,v]) -> New tree with keys from S and values equal to v."""
    tree = cls()
    for key in iterable:
        tree.insert(key, value)
    return tree
