AE2A_dev: Added code for recursive approach.

The limit required is too high, so system stack overflow occurs.
Iterative approach to be followed.