add A* algorithm to find path from node to other