Add utility to HeuristicTree constructor, remove global target varible