Added an A* helper class that runs the algorithm on it's own thread.