Add basis of A* search