start from the first node of next level
if ( p . left ) : NEW_LINE INDENT p = p . left NEW_LINE DEDENT elif ( p . right ) : NEW_LINE INDENT p = p . right NEW_LINE DEDENT else : NEW_LINE INDENT p = getNextRight ( p ) NEW_LINE DEDENT