fixed lookahead

Signed-off-by: Daniel Fagnan <dnfagnan@gmail.com>
added malloc

Signed-off-by: Daniel Fagnan <dnfagnan@gmail.com>
renamed ForLoopX to Each

Signed-off-by: Daniel Fagnan <dnfagnan@gmail.com>