Serial A* implemented, but not quite working correctly.