search tree implemented, level generator optimal path