Hi Victor, actually I think this might be the application domain of the "Zipper" data structure. I suggest you just google for it, but there's also a post in this list, a week or so back. Günther