Classic A* algorithm interpretation