A pathfinding aware data structure. The tree is to be queried using a criterion, and will adjust itself accordingly.