Add a pathfinding algorithm.