Added rollback to lookahead heuristic