Using continuations instead of C stack