JDF-59 Solve the recursion stack overflow problem with LinkedLists by using iteration. Need to do some more tuning and profiling now