An efficient iterative threshold heuristic tree search algorithm