I am designing a library for a hierarchical problem. At each stage of the hierarchy there are several “tools” at hand. If at a state N one tool succeeds, the solution is passed to the next (N+1) state. If all tools of stage N fails, it returns to the state N-1 (previous) and lets itRead more