reduce memory usage of prom search (don't store every visited node -- just those that are still reachable)