Version 18 -- faster DFS