Conversion of recursive to iterative algorithm

Published --