Apologies, I inadvertently sent the version before I added a maximumnumber of iterations in the final loop.
-- Álvaro Herrera Valdivia, Chile"La fuerza no está en los medios físicossino que reside en una voluntad indomable" (Gandhi)