def indentBlock(block):
            cursor = cursorAtSpaceEnd(block)
            cursor.insertText(' ' if withSpace else self.text())
def remove(root, key):
    left, right = split(root, key)
    return merge(left, split(right, key + 1)[1])