1. Adjust a stack depth as needed for a deep recursion
2. Replace Hashtable and HashSet to Dictionary