improved lc populating next pointer (iterative)