AI HTN planner in C++