This uses a loop and a list to emulate recursive algorithms, even algorithms that aren't primitive recursive. No custom blocks! SEE INSIDE!
This is inspired in x86 assembly. In assembly, the processor controls an instruction pointer. For each value of that instruction pointer, its instruction is executed. There are three instructions in the tree program and four instructions in the Koch curve program. I'll make in the future a recursion remover, that removes all recursion inside all custom blocks in a project.