A* search algorythm