I am writing some code with a deep recursion, and i have to pass down bi-dimensional arrays, which change through the recursion. I now pass the array be Ref, and at the begining of the function, copy and change as necessary. It takes a long time and a lot of memory.
what good way is there to do so?!
Another thing - while the function is being evaluated, i have a clock that is supposed to time the function, but it seems as though the function blocks the clock, and it doesn't move...